<?php
Yii::import('ext.ECSVExport');
class CCSVExport extends ECSVExport{
    
    public static $classBackParameter;
    
    public static function addCallbackParameter($classBackParameter){
        self::$classBackParameter = $classBackParameter;
    }
    
    public static function callbackParameter(){
        return self::$classBackParameter;
    }
    
	public function evaluateExpression($_expression_,$_data_=array()){
		if(is_string($_expression_))
		{
			extract($_data_);
			return eval('return '.$_expression_.';');
		}
		else
		{
			$_data_[]=$this;
			return call_user_func_array($_expression_, $_data_);
		}
	}
}
